package com.zorn.platform.setting.action;

import com.zorn.core.provider.ActionSupportProvider;
import com.zorn.platform.setting.service.ISettingService;

public class SettingAction extends ActionSupportProvider {

	/* Fields
	================================================== */
	private ISettingService settingService;

	/* Methods
	================================================== */
	public String query() {
		settingService.query(getParameterMap());

		setJSONObject(settingService.getResult());

		return JSON_RESULT;
	}

	public String count() {
		settingService.count(getParameterMap());

		setJSONObject(settingService.getResult());

		return JSON_RESULT;
	}

	public String insert() {
		settingService.insert(getParameterMap());

		setJSONObject(settingService.getResult());

		return JSON_RESULT;
	}

	public String update() {
		settingService.update(getParameterMap());

		setJSONObject(settingService.getResult());

		return JSON_RESULT;
	}

	public String delete() {
		settingService.delete(getParameterMap());

		setJSONObject(settingService.getResult());

		return JSON_RESULT;
	}

	/* Getters & Setters
	================================================== */
	public void setSettingService(ISettingService settingService) {
		this.settingService = settingService;
	}

}